import java.io.Serializable;

public class Alert implements Serializable {
	
	private int event_id;
	private long time;
	private int alert_id;
	private String alert_type;
	private String classification;
	private String source_ip;
	private String destination_ip;
	
	//Need this if you want to serialize the object
	private long serialVersionUID = 1;
	
	public Alert(int event_id, long time, int milli_secs, int alert_id,
			String alert_type, String classification, String source_ip,
			String destination_ip) {
		this.event_id = event_id;
		this.time = time + milli_secs;
		this.alert_id = alert_id;
		this.alert_type = alert_type;
		this.classification = classification;
		this.source_ip = source_ip;
		this.destination_ip = destination_ip;
	}

	public int getEvent_id() {
		return event_id;
	}

	public void setEvent_id(int event_id) {
		this.event_id = event_id;
	}

	public String getDestination_ip() {
		return destination_ip;
	}

	public void setDestination_ip(String destination_ip) {
		this.destination_ip = destination_ip;
	}

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public int getAlert_id() {
		return alert_id;
	}

	public void setAlert_id(int alert_id) {
		this.alert_id = alert_id;
	}

	public String getAlert_type() {
		return alert_type;
	}

	public void setAlert_type(String alert_type) {
		this.alert_type = alert_type;
	}

	public String getClassification() {
		return classification;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public String getSource_ip() {
		return source_ip;
	}

	public void setSource_ip(String source_ip) {
		this.source_ip = source_ip;
	}
	
	
	@Override
	public String toString() {
		return "Alert [event_id=" + event_id + ", time(in milliseconds)=" + time
				+ ", alert_id=" + alert_id
				+ ", alert_type=" + alert_type + ", classification="
				+ classification + ", source_ip=" + source_ip
				+ ", destination_ip=" + destination_ip + "]";
	}

	//JFD just to test AlertTre
	public Alert(String alert_type){
		this.alert_type = alert_type;
	}
	
}
